#ifndef GLConsole2008
#define GLConsole2008

#include "deque"
#include "Renderable.h"
#include "../GL/glut.h"
#include "Utilities.h"



class GLConsole : public Renderable, public Singleton<GLConsole>
{
	int _startX;
	int _startY;
	int _X;
	int _Y;
	int _width;
	int _height;
	bool _selected;
	int _fontHeight;
	std::deque<std::string> _lines;

	void SetOrtho();
	void UnSetOrtho();
public:
	GLConsole(int startX, int startY, int width, int height);
	/* override */
	void Render();
	int CountLineHeight(const char *string);
	int RenderLine(const char *string);
	void PrintLine(char *arg);
	void PrintLine(std::string arg);
};

#endif